package com.seadragon.app.ksr.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DBFFileHeader {
	private int version;
	private Date dateUpdated;
	private int numberOfRecords;
	private int lengthOfHeader;
	private int lengthOfEachRecord;
	private boolean encrypted;
	private List<DBFFileField> fields;

	public DBFFileHeader(){
		fields = new ArrayList<DBFFileField>();
	}
	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public Date getDateUpdated() {
		return dateUpdated;
	}

	public void setDateUpdated(Date dateUpdated) {
		this.dateUpdated = dateUpdated;
	}

	public int getNumberOfRecords() {
		return numberOfRecords;
	}

	public void setNumberOfRecords(int numberOfRecords) {
		this.numberOfRecords = numberOfRecords;
	}

	public int getLengthOfHeader() {
		return lengthOfHeader;
	}

	public void setLengthOfHeader(int lengthOfHeader) {
		this.lengthOfHeader = lengthOfHeader;
	}

	public int getLengthOfEachRecord() {
		return lengthOfEachRecord;
	}

	public void setLengthOfEachRecord(int lengthOfEachRecord) {
		this.lengthOfEachRecord = lengthOfEachRecord;
	}

	public boolean isEncrypted() {
		return encrypted;
	}

	public void setEncrypted(boolean encrypted) {
		this.encrypted = encrypted;
	}

	public List<DBFFileField> getFields() {
		return fields;
	}

	public void add(DBFFileField field) {
		this.fields.add(field);
	}

}
